<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
 		<title></title>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<jsp:include page="/page/front/include.jsp"></jsp:include>
		<link rel="stylesheet" type="text/css" href="css/front/book.css" />
		<link rel="stylesheet" type="text/css" href="css/front/book_info.css" />
		<script type="text/javascript" src="js/front/book_info.js"></script>

		
		<link rel="stylesheet" type="text/css" href="lib/tip/css/showtip2.css" />
		<script type="text/javascript" src="lib/tip/js/showtip2.js"></script>
		
		<script language="javascript" type="text/javascript" >
		$(document).ready(function() {
			init2();
		});
		
			function showConfirm(event){
				addCartItem();
				tooltips2.showtips2(event,'message');
				setTimeout("tooltips2.hidetips2()",2000);
			}
		</script>
	</head>
	<body class="bookInfo">
		<jsp:include page="/page/front/header.jsp"></jsp:include>
		<div class="body">
			<div class="bodyLeft">
				<s:action name="getCategoryMenu" executeResult="true" ignoreContextParams="true">
					<s:param name="id"><s:property value="bookShow.category.categoryID" /></s:param>
				</s:action>
			</div>
			<div class="bodyRight">
				<s:action name="getCategoryNav" executeResult="true" ignoreContextParams="true">
					<s:param name="id"><s:property value="bookShow.category.categoryID"/></s:param>
				</s:action>
				<div class="blank"></div>
				<div class="bookInfoTop">
					<div class="bookInfoTopLeft">
						<div class="bookImage">
							<a id="" style="display: inline;" href="javascript:void(0)" class="tabContent">
								<img src='<s:property value="bookShow.picPath" />'>
							</a>
							<a id="" style="display: none;" href="javascript:void(0)" class="tabContent nonFirst">
								<img src='<s:property value="bookShow.picPath" />'>
							</a>
							<a id="" style="display: none;" href="javascript:void(0)" class="tabContent nonFirst">
								<img src='<s:property value="bookShow.picPath" />'>
							</a>
						</div>
						<div class="thumbnailBookImage">
							<a class="prev" href="javascript:void(0);" hidefocus="true"></a>
							<div class="scrollable">
								<ul class="items">
									<li class="current"><img src='<s:property value="bookShow.picPath" />'></li>
									<li><img src='<s:property value="bookShow.picPath" />'></li>
									<li><img src='<s:property value="bookShow.picPath" />'></li>
								</ul>
							</div>
							<a class="next" href="javascript:void(0);" hidefocus="true"></a>
						</div>
					</div>
					<div class="bookInfoTopRight">
						<h1><s:property value="bookShow.title" /></h1>
						<div class="blank"></div>
						<div class="bookPrice">
							<div class="left"></div>
							<div class="right">
								<div class="top">
									销&ensp;售&ensp;价：<span class="price">￥<s:property value="bookShow.price" /></span>
									定&emsp;&emsp;价：<span class="marketPrice">￥100.00</span>
								</div>
								<div class="bottom">
									折&emsp;&emsp;扣：<span class="discount">75折</span>
								</div>
							</div>
						</div>
						<div class="blank"></div>
						<ul class="bookPublishInfo">
							<li>I&ensp;S&ensp;&nbsp;B&ensp;N：<span><s:property value="bookShow.isbn" /></span></li>
							<li>作&emsp;&emsp;者：<span><s:property value="bookShow.author" /></span></li>
							<li>出&ensp;版&ensp;社：<span><s:property value="bookShow.publisher" /></span></li>
						</ul>
						<div class="blank"></div>
						<form method="post" id="buyForm" class="bookBuy">
							<div class="buyCount">
								我要购买:<input type="text" value="1" id="quantity" name="quantity">件
							 </div>
							<input type="hidden" value='<s:property value="bookShow.bookID" />' id="id" name="id" hidefocus="true">
							<input type="button" class="buyDirectly" value="" onclick="buyDirectly()" hidefocus="true">
							<input type="button" class="addCartItem" value="" onclick="addToCart()" hidefocus="true">
						</form>
					</div>
				</div>
				<div class="blank"></div>
				<div class="bookInfoBottom">
					<ul class="bookInfoTab">
						<li><a href="javascript:void(0);" hidefocus="true" id="detailTab" class="current" onclick="switchTab();">书籍详情</a></li>
						<li><a href="javascript:void(0);" hidefocus="true" id="commentTab" onclick="switchTab();">用户评论</a></li>
					</ul>
					<div id="bookDetailInfo" class="bookDetailInfo" style="display: block;">
						<pre width="111"><s:property value="bookShow.abstractInfo" /></pre>
					</div>
					<div id="bookComment" class="bookComment" style="display: none;">
						<s:action name="getBookComments" executeResult="true" ignoreContextParams="true">
							<s:param name="bookID"><s:property value="bookShow.bookID" /></s:param>
						</s:action>
					</div>
				</div>
			</div>
		</div>
		<jsp:include page="/page/front/footer.jsp"></jsp:include>
	</body>
</html>
